package com.e2oto.seller.modules.seller.adapter;

import android.widget.TextView;

import com.e2oto.seller.R;
import com.e2oto.seller.common.base.RecycleViewAdapter;
import com.e2oto.seller.common.base.RecycleViewHolder;
import com.e2oto.seller.modules.seller.bean.GoodsCategoryBean;

import java.util.List;

/**
 * Created by ZhangLiQiang on 2017/11/28.
 */

public class GoodsManageCategoryAdapter extends RecycleViewAdapter<GoodsCategoryBean> {

    public GoodsManageCategoryAdapter(List<GoodsCategoryBean> dataList) {
        super(dataList);
    }

    @Override
    public int getLayoutId(int viewType) {
        return R.layout.item_goods_manage_category;
    }

    @Override
    public void convert(RecycleViewHolder holder, GoodsCategoryBean goodsCategoryBean, int position) {
        TextView tv = (TextView) holder.getView(R.id.goods_manage_category_tv);
        tv.setText(goodsCategoryBean.getCategory_name());
    }
}
